
/**
 * 全局替换
 * @param source        源
 * @param target        目标
 * @param content       替换内容
 * @returns {string}
 */
function replaceAll(source, target, content) {
  return (source || "").replace(new RegExp(target, "gm"), content)
}
export {replaceAll}
